﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using eWallet.Serialization;

namespace eWallet.Tests
{
	/// <summary>
	/// Summary description for SerializationTests
	/// </summary>
	[TestClass]
	public class SerializationTests
	{

		public TestContext TestContext { get; set; }


		#region Test: public void DeserializeObject01()

		[global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
		[global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(" ")]
		public void DeserializeObject01()
		{
			DateTime dt1 = new DateTime(2008, 11, 1);
			byte[] data = BinarySerializer.Serialize(dt1);
			DateTime dt2 = BinarySerializer.Deserialize<DateTime>(data);

			Assert.AreEqual<DateTime>(dt1, dt2);
		}

		#endregion
		
	}
}
